home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20030409-20031118 / 000039_dbecker@cpicorp.com_Thu May 1 14:19:30 EDT 2003.msg < prev    next >
Text File  |  2020-01-01  |  6KB  |  133 lines

  1. Article: 14254 of comp.protocols.kermit.misc
  2. Path: newsmaster.cc.columbia.edu!panix!newsfeed!news.maxwell.syr.edu!feed.uncensored-news.com!ord-feed.news.verio.net!stl-feed.news.verio.net!news.cpicorp.com!not-for-mail
  3. From: Derek Chen-Becker <dbecker@cpicorp.com>
  4. Newsgroups: comp.protocols.kermit.misc
  5. Subject: Re: Changed behavior of receive/transmit move-to
  6. Date: Thu, 01 May 2003 12:56:13 -0500
  7. Organization: CPI Corporation
  8. Lines: 108
  9. Message-ID: <b8rn1f$d5i$1@cpimail.cpicorp.com>
  10. References: <b8rfll$kfv$1@cpimail.cpicorp.com> <b8rkdi$mo0$1@watsol.cc.columbia.edu>
  11. NNTP-Posting-Host: dbecker-ld.cpicorp.com
  12. Mime-Version: 1.0
  13. Content-Type: text/plain; charset=us-ascii; format=flowed
  14. Content-Transfer-Encoding: 7bit
  15. X-Trace: cpimail.cpicorp.com 1051811695 13490 131.100.250.5 (1 May 2003 17:54:55 GMT)
  16. X-Complaints-To: abuse@cpicorp.com
  17. NNTP-Posting-Date: Thu, 1 May 2003 17:54:55 +0000 (UTC)
  18. User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030225
  19. X-Accept-Language: en-us, en
  20. In-Reply-To: <b8rkdi$mo0$1@watsol.cc.columbia.edu>
  21. X-Enigmail-Version: 0.71.0.0
  22. X-Enigmail-Supports: pgp-inline, pgp-mime
  23. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14254
  24.  
  25. Thanks for the info. I understand your concerns with deferring 
  26. evaluation of the path. I think deferring does make the option much more 
  27. flexible (especially the way we're using it :) ). Perhaps a flag that 
  28. controls whether the evaluation is performed immediately or deferred 
  29. would allow for a more consistent usage. In the meantime we'll move back 
  30. to 8.206.
  31.  
  32. Thanks,
  33.  
  34. Derek
  35.  
  36. Frank da Cruz wrote:
  37. > In article <b8rfll$kfv$1@cpimail.cpicorp.com>,
  38. > Derek Chen-Becker  <dbecker@cpicorp.com> wrote:
  39. > :      The behavior of the set receive move-to command seems to have 
  40. > : changed between c-kermit 8.206 and 8.209. It used to resolve the full 
  41. > : path of the move-to target upon each transfer, and now it appears to 
  42. > : resolve it on login through IKSD. We have a directory structure like this:
  43. > : 
  44. > : ~/
  45. > : ~/a
  46. > : ~/a/incoming
  47. > : ~/a/complete-rx
  48. > : ~/a/outgoing
  49. > : ~/a/complete-tx
  50. > : ~/b
  51. > : ~/b/incoming
  52. > : ~/b/complete-rx
  53. > : ~/b/outgoing
  54. > : ~/b/complete-tx
  55. > : 
  56. > : The .kermrc for the account had lines like:
  57. > : 
  58. > : set receive move-to complete-rx
  59. > : set send move-to complete-tx
  60. > : 
  61. > : Under 8.206 we could change to directory "a" or directory "b" and issue 
  62. > : a send command like "send test.txt incoming/test.txt". The incomplete 
  63. > : file during transfer would sit in the appropriate incoming directory and 
  64. > : then would be moved to the approprate complete-rx directory on 
  65. > : completion. Under 8.209 the completed files sit in the incoming 
  66. > : directory unless we create a "complete-rx" directory in the home:
  67. > : 
  68. > : ~/complete-rx
  69. > : 
  70. > : and then they move there no matter which incoming directory they 
  71. > : arrived in.
  72. > :
  73. > I would venture to say that the behavior you were relying on was not
  74. > intentional.  Although my notes don't show it, I suspect that somebody else
  75. > -- maybe even me -- was surprised when a relative directory name was not
  76. > resolved in the context in which the command was given, especially since
  77. > after changing contexts it might not be be valid.
  78. > : If this was for one or two sites we could work around it by creating 
  79. > : different accounts for each one, but this is for 1200+ sites and one 
  80. > : account makes it managable.
  81. > :
  82. > Well, when you put it that way I can see how deferred evaluation could be 
  83. > useful too, in a use-at-your-own-risk sort of way.  But this turns out to
  84. > be a rather tricky question, since immediate and deferred evaluation can
  85. > be applied independently to the context (current directory for relative
  86. > filespecs) and to any variables in the MOVE-TO or RENAME-TO string, e.g.:
  87. >   SET RECEIVE RENAME-TO \v(filename)_\v(ndate)_\v(ntime)_\v(userid)_\v(pid)
  88. > Deferring evaluation of the MOVE/RENAME-TO string until it is used means
  89. > that an error might not be detected until hours into the operation, after
  90. > everybody has gone home.
  91. > : If I could remotely set the send/receive move-to destinations, that 
  92. > : might work, too.
  93. > :
  94. > That would be a change too.  But clearly changes are necessary, especially
  95. > since in researching this I discovered that the SET RECEIVE RENAME-TO
  96. > example (which is taken from the C-Kermit 7.0 update notes) is broken too.
  97. > My first reaction would be accept the MOVE-TO/RENAME-TO argument as-is
  98. > at parse time, with no checking, and then evaluate it upon use.  This way,
  99. > if you give an absolute pathname, it is constant; if you give a
  100. > relative one, its resoluation varies with the context.  To extend same
  101. > flexiblity to variables in the string, such as \v(time), we'd have to
  102. > evaluate them at *parse* time.  If the user wanted to defer evaluation
  103. > until use, s/he'd have to double the backslash.  A tad hard to explain,
  104. > but it leaves the user with every combination of choices.  If I get a
  105. > chance to work on the code again, I'll try this and see how it feels.
  106. > In the meantime, I'd recommend you fall back to whatever version of
  107. > C-Kermit you were using before.
  108. > Thanks for the report.
  109. > - Frank
  110.  
  111. -- 
  112. ----------------------------------------------------------------------
  113. Derek Chen-Becker
  114. Senior Network Engineer
  115. CPI Corp, Inc.
  116. 1706 Washington Ave
  117. St. Louis, MO 63103
  118. Phone: 314-231-1575 x6014
  119. Fax:   314-613-6724
  120. dbecker@cpicorp.com
  121. PGP Key available from public key servers
  122. Fingerprint: 1C34 D81E D8A0 641D 6C8C  E952 3B15 693F 9184 BC58
  123. ----------------------------------------------------------------------
  124.  
  125.